package com.base.vistter.iframe.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "inverter_station")
public class InverterStation extends BaseEntity {

    private String image;

    private String no;

    private String name;

    private Integer inverterStationTypeId;

    private Float capacity;

    private Float electricCharge;

    private String provinceCode;

    private String provinceName;

    private String cityCode;

    private String cityName;

    private String areaCode;

    private String areaName;

    private String address;

    private Double longitude;

    private Double latitude;

    private String houseName;

    private String houseTelphone;

    private Integer status;

    private Integer sysUserId;

    @TableField(exist = false)
    private Float dayElectric = 0F;

    private Float power = 0F;

    private Float monthElectric = 0F;

    private Float yearElectric = 0F;

    private Float totalElectric = 0F;

    @TableField(exist = false)
    private Boolean collect;

    @TableField(exist = false)
    private List<InverterDevices> devices = new ArrayList<InverterDevices>();

}
